package com.inspur.edp.common.expr.expresses.field;

import com.inspur.edp.common.expr.Express;
import com.inspur.edp.common.type.TypeRefer;
import lombok.Data;

import java.util.List;

/**
 * @author lizhaorui
 * @description 轻量的字段访问表达式 light weight
 * @date 2025/5/20 9:05
 */

@Data
public class LwFieldAccessExpr implements Express {

    public final static String KIND = "lwFieldAccess";

    @Override
    public String getKind() {
        return KIND;
    }

    private List<FieldItem> items;

    private TypeRefer rootType;

    @Data
    public static class FieldItem {
        private String code;
        private String name;
    }

}
